<?php

$auth = &new Auth();
$auth->removeUser();
$auth->removeUser();

unset($_SESSION['NX_AUTH']);
Flow::delete("logged_in");
Flow::add("logged_in", "false");
session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (isset($_COOKIE[session_name()])) {
   setcookie(session_name(), '', time()-42000, '/');
}

// Finally, destroy the session.
session_destroy();

/*
   echo '<pre>';
   print_r($auth->sessionData);
	print_r($_SESSION);
   echo '</pre>';
*/
?>
